//
//  ZCNavigationController.m
//  DebugDemo
//
//  Created by XFB on 2018/11/8.
//  Copyright © 2018年 ZhouCheng. All rights reserved.
//

#import "ZCNavigationController.h"

@interface ZCNavigationController ()

@end

@implementation ZCNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationBar.tintColor = [UIColor orangeColor];
}

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
    if (self.childViewControllers.count != 0) {
        //在push时隐藏底部tabBar
        viewController.hidesBottomBarWhenPushed = YES;
        [super pushViewController:viewController animated:animated];
    }else {
        [super pushViewController:viewController animated:animated];
    }
}

@end
